package com.alibaba.citrus.cr.mn.order.center.facade.repository;

import com.alibaba.citrus.cr.mn.order.center.facade.function.dataobject.AtomOrderDO;
import com.alibaba.lattice2.epoch.sdk.model.Result;
import com.epoch.app.crb2btradecenter.domain.order.dto.QueryByOrderNosRequest;
import com.epoch.app.crb2btradecenter.domain.order.dto.QueryByOrderNosV2Request;

import java.util.List;

/**
 * @author zhangxiaorui
 * @ClassName AtomOrderQueryRepository
 * @description: TODO
 * @date 2023/04/27 13:07
 * @version: 1.0
 */
public interface AtomOrderQueryRepository {
    /**
     * 查询销售订单数据
     * @param request 参数
     * @return 返回
     */
    @Deprecated
    Result<List<AtomOrderDO>> queryByOrderNos(QueryByOrderNosRequest request);

    /**
     * 查询销售订单数据(根据来源单号)
     * @param request 参数
     * @return 返回
     */
    List<AtomOrderDO> queryBySourceOrderNos(QueryByOrderNosV2Request request);

    /**
     * 查询销售订单数据（根据销售订单号）
     * @param request
     * @param needLines
     * @return
     */
    List<AtomOrderDO> queryByOrderBizIds(QueryByOrderNosV2Request request, boolean needLines);
}
